'use strict';
exports = module.exports = function ($scope){
    $scope._Open_tab = function (url) {
        var a=document.createElement("a");
        a.href = url;
        a.target = "_blank";
        a.rel = "external";
        document.body.appendChild(a); a.click();
    }
    $scope.open22 = function (){
        var width=800;  //弹出窗口的宽度;
        var height=500; //弹出窗口的高度;
        var top = (window.screen.availHeight-height)/2; //窗口的垂直位置;
        var left = (window.screen.availWidth-width)/2;  //窗口的水平位置;
        window.open('tpl/tryidea/bgiframe/demo3.html#!/app111/s/t','newwindow',
            'height='+height+',width='+width+',top='+top+',left='+left+
            ',toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')
    }
    $scope.open23 = function (){
        window.open('tpl/tryidea/bgiframe/demo3.html#!/app111/s/t','_blank')
    }
}
